<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    request.setAttribute("basePath",basePath);
%>
<%@ include file="/resources/js/easyui/taglibs.jsp"%>
<%@ include file="/resources/js/wechat/_wechatui.jsp"%>
<%@ include file="/resources/js/easyui/_viewJS.jsp"%>
<!DOCTYPE>
<html>
<head>
    <title>设备列表</title>
</head>
<body>
<div class="loading"></div>
<!-- header -->
<header>
    <a href="javascript:history.go(-1);" class="top_fh">${placeName}</a>
</header>
<!-- header end -->

<div class="page">
    <div class="home_inner">
        <!-- 在线 -->
        <div class="home_zaixian">
            <em>在线</em>
            <ul>
                <c:forEach items="${onlineList}" var="list">
                    <li>
                        <a href="${basePath}wechat/operate/device/${list.deviceId}/showView">
                            <p>${list.dtName}</p>
                            <span>${list.address} ${list.deviceName}</span>
                            <time>上线时间：${list.lastOnLineTime}</time>
                        </a>
                    </li>
                </c:forEach>
            </ul>
        </div>
        <!-- 在线 end-->

        <!-- 离线 -->
        <div class="home_lixian">
            <em>离线</em>
            <ul>
                <c:forEach items="${offlineList}" var="list">
                    <li>
                        <a href="${basePath}wechat/operate/device/${list.deviceId}/showView">
                            <p>${list.dtName}</p>
                            <span>${list.address} ${list.deviceName}</span>
                            <time>上线时间：${list.lastOnLineTime}</time>
                        </a>
                    </li>
                </c:forEach>
            </ul>
        </div>
        <!-- 离线 end-->
    </div>
</div>
</body>
</html>

